<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>条件渲染v-show</title>
</head>
<body>
    <div id="example-2">
        <p v-show="showBoo">{{showMsg}}</p>
        <button type="button" @click="changeBoo()">click me!</button>
    </div>

<script src="../lib/vue.js"></script>
<script>
    var exampleVm = new Vue({
        el : "#example-2",
        data : {
            showMsg : "hello vue.js",
            showBoo : true
        },
        methods : {
            changeBoo : function(){
                return this.showBoo = !this.showBoo;
            }
        }
    })
</script>
</body>
</html>